-- GENERATED SPELL FOR [Chaotic Sentience] --


function spell0_16489(pUnit, Event) --@Unstable Magic,Self--
pUnit:FullCastSpellOnTarget(29900,pUnit)
pUnit:RegisterEvent('Sorts_16489', 637, 1)
end

function Sorts_16489(pUnit, Event)
local choix_sorts_16489 = math.random(0, 0)
if choix_sorts_16489 == 0 then
pUnit:RegisterEvent('spell0_16489', 1, 1)
end
end

function mob16489_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16489', math.random(1500, 3000), 1)
end

function mob16489_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16489_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16489_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16489, 1, 'mob16489_Action')
RegisterUnitEvent(16489, 2, 'mob16489_Leave')
RegisterUnitEvent(16489, 3, 'mob16489_Kill')
RegisterUnitEvent(16489, 4, 'mob16489_Die')
